﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="RoomList.aspx.cs" Inherits="RoomList" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>RoomList</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="/images/style.css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="/js/jiazai.js"></script>
    <script src="/js/introbox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
     <script language="javascript" type="text/javascript" src="/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script language="javascript" type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript" src="/js/pagefunction.js"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery.tablesorter.js"></script>
    <script type="text/javascript" type="text/javascript">
        $(function () {
            $("#gvList").tablesorter();
            $("#gvList th").css("cursor", "pointer");
        });
    </script>

</head>
<body style="overflow-x:hidden">
    <form id="form1" runat="server">
    <div>
    <table width="100%" class="tableBorder" border='1' cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tr align="center" valign="middle">
                <th height="22" colspan="88">
                    RoomList 管 理
                </th>
            </tr>    
                <tr>
                <td>
                    操作
                </td>
                <td>
                    <input type="button" class="btn" value="刷新" onclick="Refresh()" />
                    <asp:Button runat="server" ID="btnexcel" Text="导出Excel" OnClick="btnexcel_Click" CssClass="btn" />
                    <input type="button" class="btn" value="添加" onclick="Go('?act=add')" />
                    &nbsp;&nbsp|&nbsp;&nbsp;
                    <asp:TextBox runat="server" ID="txbsearch" Width="80px"></asp:TextBox>
                    <asp:Button runat="server" ID="btnsearch" Text="查询" CssClass="btn" 
                        onclick="btnsearch_Click" />
                </td>
            </tr>
             <asp:Panel runat="server" ID="plop">
             
		<tr    style='display:none'  >
			<td>id</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txbid" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>fanghao</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txbfanghao" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>leibie</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txbleibie" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>louceng</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txblouceng" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>danjia</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txbdanjia" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>kezhu</td>
        	<td>
            	<asp:TextBox runat="server"   class="easyui-numberbox"  ID="txbkezhu" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>yizhu</td>
        	<td>
            	<asp:TextBox runat="server"   class="easyui-numberbox"  ID="txbyizhu" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>shuoming</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txbshuoming" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>chuanghu</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txbchuanghu" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>kongtiao</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txbkongtiao" ></asp:TextBox>
        	</td>
    	</tr>
		<tr  >
			<td>zhuangtai</td>
        	<td>
            	<asp:TextBox runat="server"   ID="txbzhuangtai" ></asp:TextBox>
        	</td>
    	</tr>
       
		<tr>
			<td></td>
       		<td>
            	<asp:Button runat="server" CssClass="btn" ID="btnRoomListOk" Text="确定" onclick="btnRoomListOk_Click" />
        	</td>
    	</tr>
			 </asp:Panel>	
	</table>   
 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
             <asp:GridView ID="gvList" runat="server" AllowPaging="false" CellPadding="2" AutoGenerateColumns="False"
                    GridLines="Both" EmptyDataText="当前页无数据"   CssClass="tableBorder"
                    Width="100%" OnPreRender="gvList_PreRender">
                    <Columns>
		  <asp:BoundField   DataField="id" HeaderText="id"/>
		  <asp:BoundField   DataField="fanghao" HeaderText="fanghao"/>
		  <asp:BoundField   DataField="leibie" HeaderText="leibie"/>
		  <asp:BoundField   DataField="louceng" HeaderText="louceng"/>
		  <asp:BoundField   DataField="danjia" HeaderText="danjia"/>
		  <asp:BoundField   DataField="kezhu" HeaderText="kezhu"/>
		  <asp:BoundField   DataField="yizhu" HeaderText="yizhu"/>
		  <asp:BoundField   DataField="shuoming" HeaderText="shuoming"/>
		  <asp:BoundField   DataField="chuanghu" HeaderText="chuanghu"/>
		  <asp:BoundField   DataField="kongtiao" HeaderText="kongtiao"/>
		  <asp:BoundField   DataField="zhuangtai" HeaderText="zhuangtai"/>
                    
                    
                    
                    
                    <asp:TemplateField HeaderText="操作">
                            
                            <ItemTemplate>
                            <input class="btn" type="button"  onclick="Go('?act=mod&id=<%#Eval("id") %>')" value="修改" />
                            <input class="btn" type="button"  onclick="javascript:if (confirm('您真的确定要删除吗？\n\n请确认！')==true){Go('?act=del&id=<%#Eval("id")%>')}else{return false}" value="删除" />
                                
                            </ItemTemplate>
                        </asp:TemplateField>
                     </Columns>
                    <PagerSettings Visible="False" />
                </asp:GridView>           
         </td>
        </tr>
    </table>
    <asp:Literal runat="server" ID="litpager"></asp:Literal>
     <div style="color:Gray">提示：点击表头可以排序</div>
    </div>
    </form>
    <script language='javascript' type='text/javascript' src='/JS/tablecolor.js'></script>
    <script type='text/javascript' language='javascript'><!--
        TableColor('gvList', '#F1F8FE', '#FFFFFF', '#F8DC87', '#BCE774');
    --></script>
</body>
</html>




 
